package cn.tedu._06article.pojo.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data

public class UserArticleParam {
    @NotNull
    private String title;
    @Range(min = 10, max = 500, message = "文章内容长度在10~500之间")
    private String content;
}
